<?php
/**
 * RedCross Application
 *
 * @copyright Copyright (c) 2010, Kristian Stokke Tryggestad, Rune Vikestad, Andreas Flaten Wist, Simen Nicolai Echholt, Ole Henrik Jahren
 */


class Admin_Form_Group_Edit extends RedCross_Form
{

    public function init()
    {
		$this->addElement('text', 'name', array(
			'filters' 		=> array('StringTrim'),
			'validators'	=> array(
                array('NotEmpty'),
				array('StringLength', true, array(5, 32)),
            ),
			'required'	=> true,
			'label'		=> 'Navn',
		));

        $this->addElement('submit', 'edit_group', array(
            'required' => true,
            'ignore'   => true,
            'label'    => 'Lagre',
        ));

        $this->getElement('edit_group')->setDecorators($this->_buttonElementDecorators);
    }
}
